﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Best.SmartCms.Domain.Common;

namespace Best.SmartCms.Domain
{
    [Table("News")]
    public class News : BaseDomain
    {

        /// <summary>
        /// 频道Id
        /// </summary>
        public long ChannelId { get; set; }

        /// <summary>
        /// 主题
        /// </summary>
        [StringLength(100)]
        public string Title { get; set; }

        /// <summary>
        /// 摘要
        /// </summary>
        [StringLength(500)]
        public string Summer { get; set; }

        /// <summary>
        /// 关键字
        /// </summary>
        [StringLength(200)]
        public string Keywords { get; set; }

        /// <summary>
        /// 作者
        /// </summary>
        [StringLength(50)]
        public string Author { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [StringLength(10000)]
        public string Content { get; set; }

        /// <summary>
        /// 预读数量
        /// </summary>
        public int? ReadNum { get; set; }

    }
}
